package com.yjd.comm.fs.service;

import java.util.List;
import java.util.Map;

import com.yjd.comm.base.service.IBaseService;
import com.yjd.comm.fs.model.FsConfigModel;

/**
 * 文件系统配置信息
 * 
 * @author ready
 * 
 */
public interface IFsConfigService extends IBaseService {
	/**
	 * 新增
	 * 
	 * @param model
	 * @return
	 * @throws Exception
	 */
	public FsConfigModel insert(FsConfigModel model) throws Exception;

	/**
	 * 根据文件服务id删除对象
	 * 
	 * @param idFsService
	 *            文件服务id
	 * @return
	 * @throws Exception
	 */
	public int delete(Long idFsService) throws Exception;

	/**
	 * 根据Map中的参数删除对象
	 * 
	 * @param paramMap
	 * @return
	 * @throws Exception
	 */
	public int deleteByMap(Map<Object, Object> paramMap) throws Exception;

	/**
	 * 新增
	 * 
	 * @param model
	 * @return
	 * @throws Exception
	 */
	public int update(FsConfigModel model) throws Exception;

	/**
	 * 查找文件配置信息，查出的信息包含FTP,web配置信息
	 * 
	 * @param idFsConfig
	 * @return
	 * @throws Exception
	 */
	public FsConfigModel getConfigModel(Long idFsConfig) throws Exception;

	/**
	 * 根据文件配置id列表获取文件服务信息
	 * 
	 * @param idFsConfigs
	 * @return
	 * @throws Exception
	 */
	public List<FsConfigModel> getListByIdFsConfigs(List<Long> idFsConfigs)
			throws Exception;
}
